import http from '../request'

// 2、定义登录函数接口
export default{
    saveSkuInfo (skuInfo){
        return http({
            url: `/admin/product/sku/saveSkuInfo`,
            method: 'post',
            data:skuInfo
        })
    },
    getSkuInfoPage (pageNo,pageSize,searchMap){
        return http({
            url: `/admin/product/sku/${pageNo}/${pageSize}`,
            method: 'get',
            params:searchMap
        })
    },
    onSale(skuId){
        return http({
            url: `/admin/product/sku/onSale/${skuId}`,
            method: 'post'
        })
    },
    cancelSale(skuId){
        return http({
            url: `/admin/product/sku/cancelSale/${skuId}`,
            method: 'post'
        })
    }
}



